Synthesizes a new Convention first Diamant DAO to manage the persistence operations of the specified entity type.

If the entity type is a StrongEntity<TId> all persistence operations will be available to use, otherwise certain operations that rely on identity will throw a InvalidOperationException when called.

Namespace: Keystone.Carbonite.Diamant
Assembly: Keystone.Carbonite.Diamant (in Keystone.Carbonite.Diamant.dll)

public IConventionFirstDiamantDao<TEntity> GetDaoFor<TEntity>( 
string tableSchema = null, 
NamingConvention tableNamingConvention = SnakeCase, 
NamingConvention columnNamingConvention = SnakeCase 

where TEntity : new()
This language is not supported or no code example is available.

Type Parameters

TEntity

The type of the entity to manage.

Parameters

tableSchema

Type: string

The table schema, if any.

tableNamingConvention

Type: NamingConvention

The table naming convention.

columnNamingConvention

Type: NamingConvention

The column naming convention.

Return Value

A new IConventionFirstDiamantDao<TEntity> instance.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono